/*
 * @Description:
 * @Author: zhaolei
 * @Date: 2023-04-20 10:03:39
 */
import request from '@/router/axios';

export function fetchList(query) {
  return request({
    url: '/operation/petsearchinfo/page',
    method: 'get',
    params: query,
  });
}

export function updateSearchStatus(data) {
  return request({
    url: '/operation/petsearchinfo/updateDisableFlagById',
    method: 'put',
    data,
  });
}

export function addObj(data) {
  return request({
    url: '/operation/petsearchinfo',
    method: 'post',
    data,
  });
}

export function putObj(data) {
  return request({
    url: '/operation/petsearchinfo',
    method: 'put',
    data,
  });
}

export function getObj(id) {
  return request({
    url: `/operation/petsearchinfo/${id}`,
    method: 'get',
  });
}
